import {createApp} from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router";
import "./assets/scss/animate.scss";
import "./assets/iconfont/iconfont.css";
import store from "@/store/index";
// import "@/utils/rem.js"
import {installUi} from "./AntUi/index";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);
app.config.globalProperties.router = router;
app.config.globalProperties.baseUrl = import.meta.env.VITE_APP_PROXY_TARGET;
app.use(router);
app.use(store);
installUi(app);
// 安装elementUI图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
app.mount("#app");
